package com.jiyun.login.controller;

import com.jiyun.config.Result;
import com.jiyun.login.feign.LoginFeignService;
import com.jiyun.model.Member;
import com.jiyun.model.User;
import com.jiyun.vo.ResultResopnse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class LoginController {
    @Autowired
    LoginFeignService loginFeignService;


    @RequestMapping("login")
    public ResultResopnse Login(@RequestBody User user){
        return loginFeignService.login(user);
    }

}
